package com.ktwlrj.core.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户登录详细信息
 *
 * @author zhouxuanhong
 * @date 2019-05-22 23:51
 * @since JDK1.8
 */
@Data
public class DetailEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "memberId", value = "会员id")
    private String memberId;

    @ApiModelProperty(name = "openId", value = "开放ID")
    private String openId;

    @ApiModelProperty(name = "account", value = "账号")
    private String account;

    @ApiModelProperty(name = "mobilePhone", value = "手机号码")
    private String mobilePhone;

     @ApiModelProperty(name = "mobilePhoneEncry", value = "电话号码-加密")
     private String mobilePhoneEncry;

    @ApiModelProperty(name = "certificationType", value = "证件类型")
    private Integer certificationType;

    @ApiModelProperty(name = "certificationId", value = "证件号码")
    private String certificationId;

    @ApiModelProperty(name = "certificationIdEncry", value = "证件号码-加密")
    private String certificationIdEncry;

    @ApiModelProperty(name = "email", value = "电子邮箱")
    private String email;

    @ApiModelProperty(name = "realName", value = "真实姓名")
    private String realName;

    @ApiModelProperty(name = "nickName", value = "昵称")
    private String nickName;

    @ApiModelProperty(name = "headIcon", value = "头像")
    private String headIcon;

    @ApiModelProperty(name = "gender", value = "性别:0-男，1-女，2-未知")
    private Integer gender;

    @ApiModelProperty(name = "memberAccountType", value = "会员中号类型1-普通会员，2-企业")
    private Integer memberAccountType;

    @ApiModelProperty(name = "regionCodes", value = "地区编码,多个用英文逗号隔开(权限字段)")
    private String regionCodes;

    @ApiModelProperty(name = "orgIds", value = "机构编码,多个用英文逗号隔开(权限字段)")
    private String orgIds;

    @ApiModelProperty(name = "currentOrgId", value = "当前用户登录选择的机构id")
    private String currentOrgId;

    @ApiModelProperty(name = "currentSocialCreditCode", value = "当前用户登录选择的机构统一社会信用代码")
    private String currentSocialCreditCode;

    @ApiModelProperty(name = "currentOrgName", value = "当前用户登录选择的机构名称")
    private String currentOrgName;

    @ApiModelProperty(name = "regionCode", value = "当前机构区域编码")
    private String regionCode;

    @ApiModelProperty(name = "regionName", value = "当前机构区域编码名称")
    private String regionName;

    public DetailEntity(boolean isNoAuth) {
        this.memberId = "311c1cb7ee2d47969764bd9f09472f5c";
        this.openId = "66015327a76a4de598cb7899f8c33959";
        this.mobilePhone = "139*****000";
        // this.mobilePhoneEncry = "13984240000";
        this.certificationType = 10;
        this.certificationId = "5**************451X";
        // this.certificationIdEncry = "52212719880921451X";
        this.email = "pog2g@outlook.com";
        this.realName = "周玄红";
        this.nickName = "玄红";
        this.gender = 0;
        this.memberAccountType = 1;
        this.currentOrgId = "402880f76dd80224016dd8752b5f000c";
        // this.currentSocialCreditCode = "91520115MA6DUM5561";
        this.currentSocialCreditCode = "91520103057083898N";
        this.currentOrgName = "贵阳万科劲嘉置业有限公司";
        this.regionCode = "550023";
        this.regionName = "贵阳市";
    }

    public DetailEntity() {
    }
}
